package org.jpush.core;

public class PhysicalConnectionEvent
{
	public static enum EventType
	{
		initialize,
		read,
		write
	};
	
	private PhysicalConnection connection;
	private EventType eventType;
	
	public PhysicalConnectionEvent(EventType eventType, PhysicalConnection connection)
	{
		this.eventType = eventType;
		this.connection = connection;
	}
	
	public EventType getEventType()
	{
		return this.eventType;
	}
	
	public PhysicalConnection getConnection()
	{
		return this.connection;
	}
}